import request from '@/utils/request'

// 查询报销类型列表
export function listInvoiceExpensesType(query) {
  return request({
    url: '/business/invoiceExpensesType/list',
    method: 'get',
    params: query
  })
}

// 查询报销类型所有列表
export function listAllInvoiceExpensesType(query) {
  return request({
    url: '/business/invoiceExpensesType/listAll',
    method: 'get',
    params: query
  })
}

// 查询报销类型详细
export function getInvoiceExpensesType(id) {
  return request({
    url: '/business/invoiceExpensesType/getInfo/' + id,
    method: 'get'
  })
}

// 新增报销类型
export function addInvoiceExpensesType(data) {
  return request({
    url: '/business/invoiceExpensesType/add',
    method: 'post',
    data: data
  })
}

// 修改报销类型
export function updateInvoiceExpensesType(data) {
  return request({
    url: '/business/invoiceExpensesType/edit',
    method: 'post',
    data: data
  })
}

// 删除报销类型
export function delInvoiceExpensesType(id) {
  return request({
    url: '/business/invoiceExpensesType/remove/' + id,
    method: 'get'
  })
}
